package extrace.misc.model;

import java.io.Serializable;

import com.google.gson.annotations.Expose;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Address implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3267943602377867497L;


	
	@Expose private int ID;
	@Expose private String name;
	@Expose private String telCode;
	@Expose private String department;
	@Expose private String regionCode;
	@Expose private String address;
	@Expose private int postCode;
	@Expose private Integer CID;

	private String regionString;

	public String getRegionString() {
		return regionString;
	}
	public void setRegionString(String value) {
		this.regionString = value;
	}
		
	private boolean _saved = false;
	
	public void onSave() {
		_saved=true;
	}
	
	public void onLoad() {
		_saved=true;
	}
	
	public boolean isSaved() {
		return _saved;
	}	
}
